/**
 *
 */
package vn.tecviets.thuandt.model.bo;

import java.sql.SQLException;
import java.util.ArrayList;

import vn.tecviets.thuandt.model.bean.Category;
import vn.tecviets.thuandt.model.dao.CategoryDAO;

/*
 * CategoryBO
 * 1.0
 * Mar 24, 2013
 * 
 * Copyright notice
 * 
 * Modification Logs:
 * 
 * DATE					AUTHOR				DESCRIPTION
 * -----------------------------------------------------------
 * Mar 24, 2013			Thuandt				Create
 */

public class CategoryBO {
	
	CategoryDAO categoryDAO = new CategoryDAO();
	
	/**
	 * @return
	 * @throws ClassNotFoundException 
	 * @throws SQLException 
	 */
	public ArrayList<Category> getAllCategory() throws ClassNotFoundException, SQLException {
		ArrayList<Category> categoryArrayList = null;

		try {
			categoryArrayList = categoryDAO.getAllCategory();
		} catch (ClassNotFoundException e) {
			throw e;
		} catch (SQLException e) {
			throw e;
		}
		
		return categoryArrayList;
	}

}
